home *** CD-ROM | disk | FTP | other *** search
/ The Atari Compendium / The Atari Compendium (Toad Computers) (1994).iso / files / umich / telecomm / sticpsrc.lzh / SOURCE.ARC / COMDEBUG.C < prev    next >
Encoding:
C/C++ Source or Header  |  1989-05-01  |  271 b   |  20 lines

  1. /* debug of calls to combios */
  2.  
  3. #include <stdio.h>
  4.  
  5. unsigned int combios (ax,dx)
  6.     unsigned ax,dx;
  7.  
  8. {
  9.     printf("combios(0x%04x,%d)\n",ax,dx);
  10.     fflush(stdout);
  11.     switch (ax >> 8)
  12.     {
  13.     case 2:
  14.         return 0x20c0;
  15.     case 4:
  16.         return 0xaa55;
  17.     }
  18.     return 0x2100;
  19. }
  20.